package com.bangcle.library.ui.view;

import android.content.Context;
import android.text.method.ScrollingMovementMethod;
import android.util.AttributeSet;
import android.widget.TextView;
public class ScrollTextView extends TextView{
    public ScrollTextView(Context context) {
        super(context);
        this.initialize(context);
    }

    public ScrollTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.initialize(context);
    }

    public ScrollTextView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        this.initialize(context);
    }

    protected void initialize(Context mContext) {
        setMovementMethod(ScrollingMovementMethod.getInstance());
    }
}
